package com.winit.mq.message;

import java.util.Map;

/**
 * Created by xiangyu.liang on 2016/8/15.
 */
public class Message<T> {
    private Map head;
    private T body;

    public Message(){

    }
    public Message(Map head, T body){
        this.head=head;
        this.body=body;
    }

    public Map getHead() {
        return head;
    }

    public void setHead(Map head) {
        this.head = head;
    }

    public T getBody() {
        return body;
    }

    public void setBody(T body) {
        this.body = body;
    }
}
